﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <title></title>
    <link rel="stylesheet" href="/css/scenario3_BackgroundTask.css">
    <script src="/js/scenario3_BackgroundTask.js"></script>
</head>

<body class="win-type-body">
    <div data-win-control="SdkSample.ScenarioInput">
        <p>Control registration of a background task to read geolocation on a periodic timer. Upon initial registration (and if the application is enabled on the lock screen) the current position will be retrieved once in the foreground. If returning to
            this scenario after already being registered, the application will wait for the background task to update the location.</p>
        <button class="action win-button" id="registerBackgroundTaskButton">Register</button>
        <button class="action win-button" id="unregisterBackgroundTaskButton">Unregister</button>
    </div>
    <div data-win-control="SdkSample.ScenarioOutput">
        Latitude: <span id="latitude">No data</span>
        <br> Longitude: <span id="longitude">No data</span>
        <br> Accuracy: <span id="accuracy">No data</span>
        <br>
    </div>
</body>

</html>